package  com.NeuglsWorkStudio.UI.FormElement.Component
{
	import com.NeuglsWorkStudio.UI.FormElement.Config.TConfig;
	
	import flash.display.Sprite;
	
	/**The base class of component
	 * @author Neugls
	 * */
	public class TComponent extends Sprite
	{		
		protected var _FConfig:TConfig=null;
		
		public function TComponent(AConfig:TConfig)
		{
			super();
			_FConfig=AConfig;
			
			Init();
		}
		
		protected function Init():void{
			this.name=_FConfig.Name;
			this.x=_FConfig.x;
			this.y=_FConfig.y;
		}
	}
}